﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using System.ComponentModel;

namespace Sunlit.Business.HomeSliders
{
    [Table("AbpHomeSliders")]
    public class HomeSlider : Entity
    {
        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(256)]
        public string Title { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        [Required(ErrorMessage = "请输入图片地址")]
        [StringLength(512)]
        public string ImageUrl { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        [StringLength(512)]
        public string LinkUrl { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public SliderType SliderType { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int DisplayOrder { get; set; }
    }
    public enum SliderType
    {
        /// <summary>
        /// 政策咨询
        /// </summary>
        [Description("政策咨询")]
        Policy,
        /// <summary>
        /// 企业选址
        /// </summary>
        [Description("企业选址")]
        Enterprise,
        /// <summary>
        /// 商业选址
        /// </summary>
        [Description("商业选址")]
        Commerce,
        /// <summary>
        /// 企业服务
        /// </summary>
        [Description("企业服务")]
        Serve,
        /// <summary>
        /// 其他
        /// </summary>
        [Description("其他")]
        Other
    }
}
